# utf-8

import unittest

from solution import Solution


class TestLc(unittest.TestCase):
    def setUp(self):
        self.soluton_inst = Solution()
        print("setUp...")

    def tearDown(self):
        del self.soluton_inst
        print("tearDown...")

    def test_case_01(self):
        start = "hit"
        end = "cog"
        bank = ["hot", "dot", "dog", "lot", "log", "cog"]
        res = self.soluton_inst.ladderLength(start, end, bank)
        self.assertEqual(res, 5)

    def test_case_02(self):
        start = "hit"
        end = "cog"
        bank = ["hot", "dot", "dog", "lot", "log"]
        res = self.soluton_inst.ladderLength(start, end, bank)
        self.assertEqual(res, 0)


if __name__ == "__main__":
    unittest.main()
